package org.jgs1904.test.stringbuilder;

/**
 * @author: 默苍璃
 * @date: 2022-09-16 09:07
 * <p>
 * StringBuilder 练习代码
 */
public class Main {

    public static void main(String[] args) {
        StringBuilder sb = new StringBuilder(1024);
        sb.append("Mr ")
                .append("Bob")
                .append("!")
                .insert(0, "Hello, ");//拼接到指定位置
        System.out.println(sb.toString());
    }

}
